<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="include.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
<%@ include file="head.jsp" %>
<title><spring:message code="title.gallery" /></title>
</head>
 
<body>
	<%@ include file="header.jsp" %>
	<div class="container-fluid">
		<div class="row-fluid">
			<%@ include file="menu.jsp" %>
			<div class="span10">
			<%@ include file="breadcrumb.jsp" %>
				<div class="page-header">
					<h2>Create Gallery</h2>		
				</div>
				<form:form method="POST" enctype="multipart/form-data"  cssClass="form-horizontal" commandName="gallery" action="${pageContext.request.contextPath}/gallery/add">
					<form:errors path="*" cssClass="alert alert-error"  element="div" />
					<div class="control-group">
						<label class="control-label"><spring:message code="label.title" /></label>
						<div class="controls">
							<form:input path="title"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label"><spring:message code="label.description" /></label>
						<div class="controls">
							<form:textarea path="description"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label"><spring:message code="label.file" /></label>
						<div class="controls">
							<input type="file" name="file" id="file" />
						</div>
					</div>
					<div class="control-group">
						<div class="controls">
							<a class="btn" href="${pageContext.request.contextPath}/gallery"><spring:message code="button.back" /> </a>
							<input class="btn" type="submit" value="<spring:message code="button.add" />" />
						</div>
					</div>
				</form:form>
			</div>
		</div>
	</div>
	<%@ include file="footer.jsp" %>
</body>
</html>